<template>
  <div>
    <h2>我是home组件</h2>
    <van-button type="primary" @click="toHome">点我去test组件</van-button>
  </div>
</template>

<script>
  export default {
    name:'Home',
    methods:{
      toHome(){
        this.$router.push('/test')
      }
    }
  }
</script>

<style lang="less" scoped>
  
</style>